package com.generator.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 * User : andylin
 * Date : 2021/4/10
 * Time : 8:47
 * 注意代码的层次与规范
 */

@Component
@Data
public class UserEntity {
    @Override
    public String toString() {
        return "User{" +
                "mysqlDatabase='" + mysqlDatabase + '\'' +
                ", mysqlUserName='" + mysqlUserName + '\'' +
                ", mysqlIp='" + mysqlIp + '\'' +
                ", mysqlPassword='" + mysqlPassword + '\'' +
                ", author='" + author + '\'' +
                ", packageName='" + packageName + '\'' +
                ", tableName='" + tableName + '\'' +
                '}';
    }

    @Value("${mysql.databasename}")
    private String mysqlDatabase;

    @Value("${mysql.username}")
    private String mysqlUserName;

    @Value("${mysql.ip}")
    private String mysqlIp;

    @Value("${mysql.password}")
    private String mysqlPassword;

    @Value("${author}")
    private String author;

    @Value("${package.name}")
    private String packageName ;

    @Value("${mysql.tablename}")
    private String tableName ;


}
